///////////////////////////////////////////////////////////////////////////////
//2013/4/4
//周俊
//场景委托实现
///////////////////////////////////////////////////////////////////////////////
#include "BaseScene.h"

USING_NS_CC;
TSP_NS_START

BaseScene::BaseScene()
{
}

BaseScene::~BaseScene()
{
}

BaseScene* BaseScene::create()
{
    BaseScene* scene = new BaseScene();
    if ( !scene->init() )
    {
        delete scene;
        scene = nullptr;
    }
    return scene;
}

bool BaseScene::init()
{
    if ( !cocos2d::Scene::init() )
    {
        return false;
    }

    return true;
}

void BaseScene::onEnter()
{
    emit(kBeforeEnter, this);
    Scene::onEnter();
    emit(kAfterEnter, this);
}

void BaseScene::onExit()
{
    emit(kBeforeExit, this);
    Scene::onExit();
    emit(kAfterExit, this);
}

TSP_NS_END